package cn.kbblog.controller;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.kbblog.biz.DepartBiz;
import cn.kbblog.biz.UserinfoBiz;
/**
 * 实现i18n
* @author ykb yang.kb@topcheer.com
* @date 2017年6月13日 下午12:47:32 
*
 */
@Controller
@RequestMapping("/index")
public class IndexController {
	
	@Resource
	private UserinfoBiz userinfoBiz;
	@Resource
	private DepartBiz departBiz;
	
	
	private static Logger LOG = LoggerFactory.getLogger(IndexController.class);
	
	@GetMapping
	public String index(Model model){
		return "index";
	}
	@GetMapping("test")
	public String test(Model model){
		model.addAttribute("regexTest", "苯(接触工业甲苯、二甲苯参照执行)");
		return "test";
	}
}
